package com.itheima.reggie.dto;

import com.itheima.reggie.entity.OrderDetail;
import com.itheima.reggie.entity.Orders;
import org.springframework.data.domain.Sort;

import java.util.List;

/**
 * @BelongsProject: digit_twin_system
 * @BelongsPackage: com.itheima.reggie.dto
 * @Author: wentianrui
 * @CreateTime: 2023-02-18  15:57
 * @Description: TODO
 * @Version: 1.0
 */
public class OrderDto extends Orders {
    private List<OrderDetail> orderDetails;

    public OrderDto(List<OrderDetail> orderDetail) {
        this.orderDetails = orderDetail;
    }

    public List<OrderDetail> getOrderDetail() {
        return orderDetails;
    }

    public void setOrderDetail(List<OrderDetail> orderDetail) {
        this.orderDetails = orderDetail;
    }

    public OrderDto() {
    }


}
